@datapos/datapos-development 0.3.399 → 0.3.401
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -184,7 +184,7 @@ var ys = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\u
|
|
|
184
184
|
Ot.prototype.offset = function(e) {
|
|
185
185
|
return new Ot(this.line, this.column + e);
|
|
186
186
|
};
|
|
187
|
-
var
|
|
187
|
+
var Kt = function(e, s, a) {
|
|
188
188
|
this.start = s, this.end = a, e.sourceFile !== null && (this.source = e.sourceFile);
|
|
189
189
|
};
|
|
190
190
|
function _e(t, e) {
|
|
@@ -313,10 +313,10 @@ function vs(t, e) {
|
|
|
313
313
|
start: o,
|
|
314
314
|
end: l
|
|
315
315
|
};
|
|
316
|
-
t.locations && (g.loc = new
|
|
316
|
+
t.locations && (g.loc = new Kt(this, d, v)), t.ranges && (g.range = [o, l]), e.push(g);
|
|
317
317
|
};
|
|
318
318
|
}
|
|
319
|
-
var
|
|
319
|
+
var $t = 1, Mt = 2, Ne = 4, ci = 8, Le = 16, pi = 32, he = 64, li = 128, It = 256, Wt = 512, ue = $t | Mt | It;
|
|
320
320
|
function Oe(t, e) {
|
|
321
321
|
return Mt | (t ? Ne : 0) | (e ? ci : 0);
|
|
322
322
|
}
|
|
@@ -326,7 +326,7 @@ var ie = 0, Re = 1, Tt = 2, fi = 3, di = 4, mi = 5, H = function(e, s, a) {
|
|
|
326
326
|
e.allowReserved !== !0 && (o = ve[e.ecmaVersion >= 6 ? 6 : e.ecmaVersion === 5 ? 5 : 3], e.sourceType === "module" && (o += " await")), this.reservedWords = kt(o);
|
|
327
327
|
var l = (o ? o + " " : "") + ve.strict;
|
|
328
328
|
this.reservedWordsStrict = kt(l), this.reservedWordsStrictBind = kt(l + " " + ve.strictBind), this.input = String(s), this.containsEsc = !1, a ? (this.pos = a, this.lineStart = this.input.lastIndexOf(`
|
|
329
|
-
`, a - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(J).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = u.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = e.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), this.pos === 0 && e.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(
|
|
329
|
+
`, a - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(J).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = u.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = e.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), this.pos === 0 && e.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope($t), this.regexpState = null, this.privateNameStack = [];
|
|
330
330
|
}, mt = { inFunction: { configurable: !0 }, inGenerator: { configurable: !0 }, inAsync: { configurable: !0 }, canAwait: { configurable: !0 }, allowSuper: { configurable: !0 }, allowDirectSuper: { configurable: !0 }, treatFunctionsAsVar: { configurable: !0 }, allowNewDotTarget: { configurable: !0 }, inClassStaticBlock: { configurable: !0 } };
|
|
331
331
|
H.prototype.parse = function() {
|
|
332
332
|
var e = this.options.program || this.startNode();
|
|
@@ -344,7 +344,7 @@ mt.inAsync.get = function() {
|
|
|
344
344
|
mt.canAwait.get = function() {
|
|
345
345
|
for (var t = this.scopeStack.length - 1; t >= 0; t--) {
|
|
346
346
|
var e = this.scopeStack[t], s = e.flags;
|
|
347
|
-
if (s & (It |
|
|
347
|
+
if (s & (It | Wt))
|
|
348
348
|
return !1;
|
|
349
349
|
if (s & Mt)
|
|
350
350
|
return (s & Ne) > 0;
|
|
@@ -364,7 +364,7 @@ mt.treatFunctionsAsVar.get = function() {
|
|
|
364
364
|
mt.allowNewDotTarget.get = function() {
|
|
365
365
|
for (var t = this.scopeStack.length - 1; t >= 0; t--) {
|
|
366
366
|
var e = this.scopeStack[t], s = e.flags;
|
|
367
|
-
if (s & (It |
|
|
367
|
+
if (s & (It | Wt) || s & Mt && !(s & Le))
|
|
368
368
|
return !0;
|
|
369
369
|
}
|
|
370
370
|
return !1;
|
|
@@ -635,7 +635,7 @@ w.parseForAfterInit = function(t, e, s) {
|
|
|
635
635
|
return (this.type === u._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && e.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === u._in ? s > -1 && this.unexpected(s) : t.await = s > -1), this.parseForIn(t, e)) : (s > -1 && this.unexpected(s), this.parseFor(t, e));
|
|
636
636
|
};
|
|
637
637
|
w.parseFunctionStatement = function(t, e, s) {
|
|
638
|
-
return this.next(), this.parseFunction(t,
|
|
638
|
+
return this.next(), this.parseFunction(t, qt | (s ? 0 : Ce), !1, e);
|
|
639
639
|
};
|
|
640
640
|
w.parseIfStatement = function(t) {
|
|
641
641
|
return this.next(), t.test = this.parseParenExpression(), t.consequent = this.parseStatement("if"), t.alternate = this.eat(u._else) ? this.parseStatement("if") : null, this.finishNode(t, "IfStatement");
|
|
@@ -725,11 +725,11 @@ w.parseVar = function(t, e, s, a) {
|
|
|
725
725
|
w.parseVarId = function(t, e) {
|
|
726
726
|
t.id = e === "using" || e === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(t.id, e === "var" ? Re : Tt, !1);
|
|
727
727
|
};
|
|
728
|
-
var
|
|
728
|
+
var qt = 1, Ce = 2, yi = 4;
|
|
729
729
|
w.parseFunction = function(t, e, s, a, o) {
|
|
730
|
-
this.initFunction(t), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !a) && (this.type === u.star && e & Ce && this.unexpected(), t.generator = this.eat(u.star)), this.options.ecmaVersion >= 8 && (t.async = !!a), e &
|
|
730
|
+
this.initFunction(t), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !a) && (this.type === u.star && e & Ce && this.unexpected(), t.generator = this.eat(u.star)), this.options.ecmaVersion >= 8 && (t.async = !!a), e & qt && (t.id = e & yi && this.type !== u.name ? null : this.parseIdent(), t.id && !(e & Ce) && this.checkLValSimple(t.id, this.strict || t.generator || t.async ? this.treatFunctionsAsVar ? Re : Tt : fi));
|
|
731
731
|
var l = this.yieldPos, d = this.awaitPos, v = this.awaitIdentPos;
|
|
732
|
-
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Oe(t.async, t.generator)), e &
|
|
732
|
+
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Oe(t.async, t.generator)), e & qt || (t.id = this.type === u.name ? this.parseIdent() : null), this.parseFunctionParams(t), this.parseFunctionBody(t, s, !1, o), this.yieldPos = l, this.awaitPos = d, this.awaitIdentPos = v, this.finishNode(t, e & qt ? "FunctionDeclaration" : "FunctionExpression");
|
|
733
733
|
};
|
|
734
734
|
w.parseFunctionParams = function(t) {
|
|
735
735
|
this.expect(u.parenL), t.params = this.parseBindingList(u.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
|
|
@@ -778,7 +778,7 @@ w.parseClassMethod = function(t, e, s, a) {
|
|
|
778
778
|
return t.kind === "get" && l.params.length !== 0 && this.raiseRecoverable(l.start, "getter should have no params"), t.kind === "set" && l.params.length !== 1 && this.raiseRecoverable(l.start, "setter should have exactly one param"), t.kind === "set" && l.params[0].type === "RestElement" && this.raiseRecoverable(l.params[0].start, "Setter cannot use rest params"), this.finishNode(t, "MethodDefinition");
|
|
779
779
|
};
|
|
780
780
|
w.parseClassField = function(t) {
|
|
781
|
-
return se(t, "constructor") ? this.raise(t.key.start, "Classes can't have a field named 'constructor'") : t.static && se(t, "prototype") && this.raise(t.key.start, "Classes can't have a static field named 'prototype'"), this.eat(u.eq) ? (this.enterScope(
|
|
781
|
+
return se(t, "constructor") ? this.raise(t.key.start, "Classes can't have a field named 'constructor'") : t.static && se(t, "prototype") && this.raise(t.key.start, "Classes can't have a static field named 'prototype'"), this.eat(u.eq) ? (this.enterScope(Wt | he), t.value = this.parseMaybeAssign(), this.exitScope()) : t.value = null, this.semicolon(), this.finishNode(t, "PropertyDefinition");
|
|
782
782
|
};
|
|
783
783
|
w.parseClassStaticBlock = function(t) {
|
|
784
784
|
t.body = [];
|
|
@@ -846,7 +846,7 @@ w.parseExportDefaultDeclaration = function() {
|
|
|
846
846
|
var t;
|
|
847
847
|
if (this.type === u._function || (t = this.isAsyncFunction())) {
|
|
848
848
|
var e = this.startNode();
|
|
849
|
-
return this.next(), t && this.next(), this.parseFunction(e,
|
|
849
|
+
return this.next(), t && this.next(), this.parseFunction(e, qt | yi, !1, t);
|
|
850
850
|
} else if (this.type === u._class) {
|
|
851
851
|
var s = this.startNode();
|
|
852
852
|
return this.parseClass(s, "nullableID");
|
|
@@ -1680,13 +1680,13 @@ wt.exitScope = function() {
|
|
|
1680
1680
|
this.scopeStack.pop();
|
|
1681
1681
|
};
|
|
1682
1682
|
wt.treatFunctionsAsVarInScope = function(t) {
|
|
1683
|
-
return t.flags & Mt || !this.inModule && t.flags &
|
|
1683
|
+
return t.flags & Mt || !this.inModule && t.flags & $t;
|
|
1684
1684
|
};
|
|
1685
1685
|
wt.declareName = function(t, e, s) {
|
|
1686
1686
|
var a = !1;
|
|
1687
1687
|
if (e === Tt) {
|
|
1688
1688
|
var o = this.currentScope();
|
|
1689
|
-
a = o.lexical.indexOf(t) > -1 || o.functions.indexOf(t) > -1 || o.var.indexOf(t) > -1, o.lexical.push(t), this.inModule && o.flags &
|
|
1689
|
+
a = o.lexical.indexOf(t) > -1 || o.functions.indexOf(t) > -1 || o.var.indexOf(t) > -1, o.lexical.push(t), this.inModule && o.flags & $t && delete this.undefinedExports[t];
|
|
1690
1690
|
} else if (e === di) {
|
|
1691
1691
|
var l = this.currentScope();
|
|
1692
1692
|
l.lexical.push(t);
|
|
@@ -1700,7 +1700,7 @@ wt.declareName = function(t, e, s) {
|
|
|
1700
1700
|
a = !0;
|
|
1701
1701
|
break;
|
|
1702
1702
|
}
|
|
1703
|
-
if (g.var.push(t), this.inModule && g.flags &
|
|
1703
|
+
if (g.var.push(t), this.inModule && g.flags & $t && delete this.undefinedExports[t], g.flags & ue)
|
|
1704
1704
|
break;
|
|
1705
1705
|
}
|
|
1706
1706
|
a && this.raiseRecoverable(s, "Identifier '" + t + "' has already been declared");
|
|
@@ -1714,37 +1714,37 @@ wt.currentScope = function() {
|
|
|
1714
1714
|
wt.currentVarScope = function() {
|
|
1715
1715
|
for (var t = this.scopeStack.length - 1; ; t--) {
|
|
1716
1716
|
var e = this.scopeStack[t];
|
|
1717
|
-
if (e.flags & (ue |
|
|
1717
|
+
if (e.flags & (ue | Wt | It))
|
|
1718
1718
|
return e;
|
|
1719
1719
|
}
|
|
1720
1720
|
};
|
|
1721
1721
|
wt.currentThisScope = function() {
|
|
1722
1722
|
for (var t = this.scopeStack.length - 1; ; t--) {
|
|
1723
1723
|
var e = this.scopeStack[t];
|
|
1724
|
-
if (e.flags & (ue |
|
|
1724
|
+
if (e.flags & (ue | Wt | It) && !(e.flags & Le))
|
|
1725
1725
|
return e;
|
|
1726
1726
|
}
|
|
1727
1727
|
};
|
|
1728
|
-
var
|
|
1729
|
-
this.type = "", this.start = s, this.end = 0, e.options.locations && (this.loc = new
|
|
1730
|
-
},
|
|
1731
|
-
|
|
1732
|
-
return new
|
|
1728
|
+
var zt = function(e, s, a) {
|
|
1729
|
+
this.type = "", this.start = s, this.end = 0, e.options.locations && (this.loc = new Kt(e, a)), e.options.directSourceFile && (this.sourceFile = e.options.directSourceFile), e.options.ranges && (this.range = [s, 0]);
|
|
1730
|
+
}, Xt = H.prototype;
|
|
1731
|
+
Xt.startNode = function() {
|
|
1732
|
+
return new zt(this, this.start, this.startLoc);
|
|
1733
1733
|
};
|
|
1734
|
-
|
|
1735
|
-
return new
|
|
1734
|
+
Xt.startNodeAt = function(t, e) {
|
|
1735
|
+
return new zt(this, t, e);
|
|
1736
1736
|
};
|
|
1737
1737
|
function vi(t, e, s, a) {
|
|
1738
1738
|
return t.type = e, t.end = s, this.options.locations && (t.loc.end = a), this.options.ranges && (t.range[1] = s), t;
|
|
1739
1739
|
}
|
|
1740
|
-
|
|
1740
|
+
Xt.finishNode = function(t, e) {
|
|
1741
1741
|
return vi.call(this, t, e, this.lastTokEnd, this.lastTokEndLoc);
|
|
1742
1742
|
};
|
|
1743
|
-
|
|
1743
|
+
Xt.finishNodeAt = function(t, e, s, a) {
|
|
1744
1744
|
return vi.call(this, t, e, s, a);
|
|
1745
1745
|
};
|
|
1746
|
-
|
|
1747
|
-
var e = new
|
|
1746
|
+
Xt.copyNode = function(t) {
|
|
1747
|
+
var e = new zt(this, t.start, this.startLoc);
|
|
1748
1748
|
for (var s in t)
|
|
1749
1749
|
e[s] = t[s];
|
|
1750
1750
|
return e;
|
|
@@ -2617,7 +2617,7 @@ C.regexp_eatFixedHexDigits = function(t, e) {
|
|
|
2617
2617
|
return !0;
|
|
2618
2618
|
};
|
|
2619
2619
|
var le = function(e) {
|
|
2620
|
-
this.type = e.type, this.value = e.value, this.start = e.start, this.end = e.end, e.options.locations && (this.loc = new
|
|
2620
|
+
this.type = e.type, this.value = e.value, this.start = e.start, this.end = e.end, e.options.locations && (this.loc = new Kt(e, e.startLoc, e.endLoc)), e.options.ranges && (this.range = [e.start, e.end]);
|
|
2621
2621
|
}, R = H.prototype;
|
|
2622
2622
|
R.next = function(t) {
|
|
2623
2623
|
!t && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new le(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
|
|
@@ -3126,9 +3126,9 @@ H.acorn = {
|
|
|
3126
3126
|
version: ji,
|
|
3127
3127
|
defaultOptions: ee,
|
|
3128
3128
|
Position: Ot,
|
|
3129
|
-
SourceLocation:
|
|
3129
|
+
SourceLocation: Kt,
|
|
3130
3130
|
getLineInfo: _e,
|
|
3131
|
-
Node:
|
|
3131
|
+
Node: zt,
|
|
3132
3132
|
TokenType: O,
|
|
3133
3133
|
tokTypes: u,
|
|
3134
3134
|
keywordTypes: Lt,
|
|
@@ -3153,10 +3153,10 @@ function Ws(t, e) {
|
|
|
3153
3153
|
}
|
|
3154
3154
|
const zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3155
3155
|
__proto__: null,
|
|
3156
|
-
Node:
|
|
3156
|
+
Node: zt,
|
|
3157
3157
|
Parser: H,
|
|
3158
3158
|
Position: Ot,
|
|
3159
|
-
SourceLocation:
|
|
3159
|
+
SourceLocation: Kt,
|
|
3160
3160
|
TokContext: X,
|
|
3161
3161
|
Token: le,
|
|
3162
3162
|
TokenType: O,
|
|
@@ -3201,7 +3201,7 @@ function ne() {
|
|
|
3201
3201
|
return t;
|
|
3202
3202
|
}, ne.apply(this, arguments);
|
|
3203
3203
|
}
|
|
3204
|
-
function
|
|
3204
|
+
function Zt(t, e) {
|
|
3205
3205
|
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, we(t, e);
|
|
3206
3206
|
}
|
|
3207
3207
|
function we(t, e) {
|
|
@@ -3312,8 +3312,8 @@ var A = { AbstractMethodHasImplementation: function(t) {
|
|
|
3312
3312
|
}, StaticBlockCannotHaveModifier: "Static class blocks cannot have any modifier.", TypeAnnotationAfterAssign: "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.", TypeImportCannotSpecifyDefaultAndNamed: "A type-only import can specify a default import or named bindings, but not both.", TypeModifierIsUsedInTypeExports: "The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.", TypeModifierIsUsedInTypeImports: "The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.", UnexpectedParameterModifier: "A parameter property is only allowed in a constructor implementation.", UnexpectedReadonly: "'readonly' type modifier is only permitted on array and tuple literal types.", GenericsEndWithComma: "Trailing comma is not allowed at the end of generics.", UnexpectedTypeAnnotation: "Did not expect a type annotation here.", UnexpectedTypeCastInParameter: "Unexpected type cast in parameter position.", UnsupportedImportTypeArgument: "Argument in a type import must be a string literal.", UnsupportedParameterPropertyKind: "A parameter property may not be declared using a binding pattern.", UnsupportedSignatureParameterKind: function(t) {
|
|
3313
3313
|
return "Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got " + t.type + ".";
|
|
3314
3314
|
}, LetInLexicalBinding: "'let' is not allowed to be used as a name in 'let' or 'const' declarations." }, Zs = { quot: '"', amp: "&", apos: "'", lt: "<", gt: ">", nbsp: " ", iexcl: "¡", cent: "¢", pound: "£", curren: "¤", yen: "¥", brvbar: "¦", sect: "§", uml: "¨", copy: "©", ordf: "ª", laquo: "«", not: "¬", shy: "", reg: "®", macr: "¯", deg: "°", plusmn: "±", sup2: "²", sup3: "³", acute: "´", micro: "µ", para: "¶", middot: "·", cedil: "¸", sup1: "¹", ordm: "º", raquo: "»", frac14: "¼", frac12: "½", frac34: "¾", iquest: "¿", Agrave: "À", Aacute: "Á", Acirc: "Â", Atilde: "Ã", Auml: "Ä", Aring: "Å", AElig: "Æ", Ccedil: "Ç", Egrave: "È", Eacute: "É", Ecirc: "Ê", Euml: "Ë", Igrave: "Ì", Iacute: "Í", Icirc: "Î", Iuml: "Ï", ETH: "Ð", Ntilde: "Ñ", Ograve: "Ò", Oacute: "Ó", Ocirc: "Ô", Otilde: "Õ", Ouml: "Ö", times: "×", Oslash: "Ø", Ugrave: "Ù", Uacute: "Ú", Ucirc: "Û", Uuml: "Ü", Yacute: "Ý", THORN: "Þ", szlig: "ß", agrave: "à", aacute: "á", acirc: "â", atilde: "ã", auml: "ä", aring: "å", aelig: "æ", ccedil: "ç", egrave: "è", eacute: "é", ecirc: "ê", euml: "ë", igrave: "ì", iacute: "í", icirc: "î", iuml: "ï", eth: "ð", ntilde: "ñ", ograve: "ò", oacute: "ó", ocirc: "ô", otilde: "õ", ouml: "ö", divide: "÷", oslash: "ø", ugrave: "ù", uacute: "ú", ucirc: "û", uuml: "ü", yacute: "ý", thorn: "þ", yuml: "ÿ", OElig: "Œ", oelig: "œ", Scaron: "Š", scaron: "š", Yuml: "Ÿ", fnof: "ƒ", circ: "ˆ", tilde: "˜", Alpha: "Α", Beta: "Β", Gamma: "Γ", Delta: "Δ", Epsilon: "Ε", Zeta: "Ζ", Eta: "Η", Theta: "Θ", Iota: "Ι", Kappa: "Κ", Lambda: "Λ", Mu: "Μ", Nu: "Ν", Xi: "Ξ", Omicron: "Ο", Pi: "Π", Rho: "Ρ", Sigma: "Σ", Tau: "Τ", Upsilon: "Υ", Phi: "Φ", Chi: "Χ", Psi: "Ψ", Omega: "Ω", alpha: "α", beta: "β", gamma: "γ", delta: "δ", epsilon: "ε", zeta: "ζ", eta: "η", theta: "θ", iota: "ι", kappa: "κ", lambda: "λ", mu: "μ", nu: "ν", xi: "ξ", omicron: "ο", pi: "π", rho: "ρ", sigmaf: "ς", sigma: "σ", tau: "τ", upsilon: "υ", phi: "φ", chi: "χ", psi: "ψ", omega: "ω", thetasym: "ϑ", upsih: "ϒ", piv: "ϖ", ensp: " ", emsp: " ", thinsp: " ", zwnj: "", zwj: "", lrm: "", rlm: "", ndash: "–", mdash: "—", lsquo: "‘", rsquo: "’", sbquo: "‚", ldquo: "“", rdquo: "”", bdquo: "„", dagger: "†", Dagger: "‡", bull: "•", hellip: "…", permil: "‰", prime: "′", Prime: "″", lsaquo: "‹", rsaquo: "›", oline: "‾", frasl: "⁄", euro: "€", image: "ℑ", weierp: "℘", real: "ℜ", trade: "™", alefsym: "ℵ", larr: "←", uarr: "↑", rarr: "→", darr: "↓", harr: "↔", crarr: "↵", lArr: "⇐", uArr: "⇑", rArr: "⇒", dArr: "⇓", hArr: "⇔", forall: "∀", part: "∂", exist: "∃", empty: "∅", nabla: "∇", isin: "∈", notin: "∉", ni: "∋", prod: "∏", sum: "∑", minus: "−", lowast: "∗", radic: "√", prop: "∝", infin: "∞", ang: "∠", and: "∧", or: "∨", cap: "∩", cup: "∪", int: "∫", there4: "∴", sim: "∼", cong: "≅", asymp: "≈", ne: "≠", equiv: "≡", le: "≤", ge: "≥", sub: "⊂", sup: "⊃", nsub: "⊄", sube: "⊆", supe: "⊇", oplus: "⊕", otimes: "⊗", perp: "⊥", sdot: "⋅", lceil: "⌈", rceil: "⌉", lfloor: "⌊", rfloor: "⌋", lang: "〈", rang: "〉", loz: "◊", spades: "♠", clubs: "♣", hearts: "♥", diams: "♦" }, tr = /^[\da-fA-F]+$/, er = /^\d+$/;
|
|
3315
|
-
function
|
|
3316
|
-
return t && (t.type === "JSXIdentifier" ? t.name : t.type === "JSXNamespacedName" ? t.namespace.name + ":" + t.name.name : t.type === "JSXMemberExpression" ?
|
|
3315
|
+
function Ht(t) {
|
|
3316
|
+
return t && (t.type === "JSXIdentifier" ? t.name : t.type === "JSXNamespacedName" ? t.namespace.name + ":" + t.name.name : t.type === "JSXMemberExpression" ? Ht(t.object) + "." + Ht(t.property) : void 0);
|
|
3317
3317
|
}
|
|
3318
3318
|
var Te = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
|
|
3319
3319
|
function ti(t) {
|
|
@@ -3342,7 +3342,7 @@ function ei(t) {
|
|
|
3342
3342
|
function ar(t) {
|
|
3343
3343
|
var e = {}, s = e.dts, a = s !== void 0 && s, o = e.allowSatisfies, l = o !== void 0 && o;
|
|
3344
3344
|
return function(d) {
|
|
3345
|
-
var v = d.acorn || zs, g = Qs(v), h = v.tokTypes, P = v.keywordTypes, N = v.isIdentifierStart, j = v.lineBreak, nt = v.isNewLine, lt = v.tokContexts, _t = v.isIdentifierChar, I = g.tokTypes, Z = g.tokContexts, fe = g.keywordsRegExp, $i = g.tokenIsLiteralPropertyName, Gi = g.tokenIsTemplate, Ki = g.tokenIsTSDeclarationStart, V = g.tokenIsIdentifier,
|
|
3345
|
+
var v = d.acorn || zs, g = Qs(v), h = v.tokTypes, P = v.keywordTypes, N = v.isIdentifierStart, j = v.lineBreak, nt = v.isNewLine, lt = v.tokContexts, _t = v.isIdentifierChar, I = g.tokTypes, Z = g.tokContexts, fe = g.keywordsRegExp, $i = g.tokenIsLiteralPropertyName, Gi = g.tokenIsTemplate, Ki = g.tokenIsTSDeclarationStart, V = g.tokenIsIdentifier, Qt = g.tokenIsKeywordOrIdentifier, Wi = g.tokenIsTSTypeOperator;
|
|
3346
3346
|
function zi(S, tt, z) {
|
|
3347
3347
|
z === void 0 && (z = S.length);
|
|
3348
3348
|
for (var $ = tt; $ < z; $++) {
|
|
@@ -3357,7 +3357,7 @@ function ar(t) {
|
|
|
3357
3357
|
function i() {
|
|
3358
3358
|
return p.apply(this, arguments) || this;
|
|
3359
3359
|
}
|
|
3360
|
-
|
|
3360
|
+
Zt(i, p);
|
|
3361
3361
|
var r = i.prototype;
|
|
3362
3362
|
return r.takeDecorators = function(n) {
|
|
3363
3363
|
var c = this.decoratorStack[this.decoratorStack.length - 1];
|
|
@@ -3397,7 +3397,7 @@ function ar(t) {
|
|
|
3397
3397
|
function f() {
|
|
3398
3398
|
return c.apply(this, arguments) || this;
|
|
3399
3399
|
}
|
|
3400
|
-
|
|
3400
|
+
Zt(f, c);
|
|
3401
3401
|
var m = f.prototype;
|
|
3402
3402
|
return m.jsx_readToken = function() {
|
|
3403
3403
|
for (var y = "", x = this.pos; ; ) {
|
|
@@ -3512,7 +3512,7 @@ function ar(t) {
|
|
|
3512
3512
|
default:
|
|
3513
3513
|
this.unexpected();
|
|
3514
3514
|
}
|
|
3515
|
-
|
|
3515
|
+
Ht(L.name) !== Ht(E.name) && this.raise(L.start, "Expected corresponding JSX closing tag for <" + Ht(E.name) + ">");
|
|
3516
3516
|
}
|
|
3517
3517
|
var k = E.name ? "Element" : "Fragment";
|
|
3518
3518
|
return b["opening" + k] = E, b["closing" + k] = L, b.children = T, this.type === D.relational && this.value === "<" && this.raise(this.start, "Adjacent JSX elements must be wrapped in an enclosing tag"), this.finishNode(b, "JSX" + k);
|
|
@@ -3530,7 +3530,7 @@ function ar(t) {
|
|
|
3530
3530
|
function i() {
|
|
3531
3531
|
return p.apply(this, arguments) || this;
|
|
3532
3532
|
}
|
|
3533
|
-
|
|
3533
|
+
Zt(i, p);
|
|
3534
3534
|
var r = i.prototype;
|
|
3535
3535
|
return r.parseMaybeImportAttributes = function(n) {
|
|
3536
3536
|
if (this.type === D._with || this.type === $.assert) {
|
|
@@ -3561,7 +3561,7 @@ function ar(t) {
|
|
|
3561
3561
|
return f;
|
|
3562
3562
|
})(c), { allowedModifiers: ["const"], disallowedModifiers: ["in", "out"], errorTemplate: A.InvalidModifierOnTypeParameterPositions }), c;
|
|
3563
3563
|
}
|
|
3564
|
-
|
|
3564
|
+
Zt(tt, S);
|
|
3565
3565
|
var z, $, D, p = tt.prototype;
|
|
3566
3566
|
return p.getTokenFromCodeInType = function(i) {
|
|
3567
3567
|
return i === 62 || i === 60 ? this.finishOp(h.relational, 1) : S.prototype.getTokenFromCode.call(this, i);
|
|
@@ -4544,7 +4544,7 @@ function ar(t) {
|
|
|
4544
4544
|
this.unexpected();
|
|
4545
4545
|
}, p.parseIdentNode = function() {
|
|
4546
4546
|
var i = this.startNode();
|
|
4547
|
-
return
|
|
4547
|
+
return Qt(this.type) ? (i.name = this.value, i) : S.prototype.parseIdentNode.call(this);
|
|
4548
4548
|
}, p.parseVarStatement = function(i, r, n) {
|
|
4549
4549
|
n === void 0 && (n = !1);
|
|
4550
4550
|
var c = this.isAmbientContext;
|
|
@@ -4896,21 +4896,21 @@ function ar(t) {
|
|
|
4896
4896
|
var Be = x.tsTryParseGenericAsyncArrowFunction(r, n, y);
|
|
4897
4897
|
if (Be) return i = Be;
|
|
4898
4898
|
}
|
|
4899
|
-
var
|
|
4900
|
-
if (!
|
|
4899
|
+
var Yt = x.tsParseTypeArgumentsInExpression();
|
|
4900
|
+
if (!Yt) return i;
|
|
4901
4901
|
if (E && !x.match(h.parenL)) return L = x.curPosition(), i;
|
|
4902
4902
|
if (Gi(x.type) || x.type === h.backQuote) {
|
|
4903
4903
|
var Ue = x.parseTaggedTemplateExpression(i, r, n, b);
|
|
4904
|
-
return Ue.typeParameters =
|
|
4904
|
+
return Ue.typeParameters = Yt, Ue;
|
|
4905
4905
|
}
|
|
4906
4906
|
if (!c && x.eat(h.parenL)) {
|
|
4907
4907
|
var qe = new Bt(), Nt = x.startNodeAt(r, n);
|
|
4908
|
-
return Nt.callee = i, Nt.arguments = x.parseExprList(h.parenR, x.options.ecmaVersion >= 8, !1, qe), x.tsCheckForInvalidTypeCasts(Nt.arguments), Nt.typeParameters =
|
|
4908
|
+
return Nt.callee = i, Nt.arguments = x.parseExprList(h.parenR, x.options.ecmaVersion >= 8, !1, qe), x.tsCheckForInvalidTypeCasts(Nt.arguments), Nt.typeParameters = Yt, b && (Nt.optional = E), x.checkExpressionErrors(qe, !0), i = x.finishNode(Nt, "CallExpression");
|
|
4909
4909
|
}
|
|
4910
4910
|
var me = x.type;
|
|
4911
4911
|
if (!(x.tsMatchRightRelational() || me === h.bitShift || me !== h.parenL && (He = me, !!He.startsExpr) && !x.hasPrecedingLineBreak())) {
|
|
4912
4912
|
var He, ye = x.startNodeAt(r, n);
|
|
4913
|
-
return ye.expression = i, ye.typeParameters =
|
|
4913
|
+
return ye.expression = i, ye.typeParameters = Yt, x.finishNode(ye, "TSInstantiationExpression");
|
|
4914
4914
|
}
|
|
4915
4915
|
});
|
|
4916
4916
|
if (L && this.unexpected(L), k) return k.type === "TSInstantiationExpression" && (this.match(h.dot) || this.match(h.questionDot) && this.lookaheadCharCode() !== 40) && this.raise(this.start, A.InvalidPropertyAccessAfterInstantiationExpression), i = k;
|
|
@@ -4930,8 +4930,8 @@ function ar(t) {
|
|
|
4930
4930
|
if (f && !B && this.shouldParseAsyncArrow()) this.checkPatternErrors(Pt, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = Vt, this.awaitPos = Ft, this.awaitIdentPos = Ct, i = this.parseSubscriptAsyncArrow(r, n, je, y);
|
|
4931
4931
|
else {
|
|
4932
4932
|
this.checkExpressionErrors(Pt, !0), this.yieldPos = Vt || this.yieldPos, this.awaitPos = Ft || this.awaitPos, this.awaitIdentPos = Ct || this.awaitIdentPos;
|
|
4933
|
-
var
|
|
4934
|
-
|
|
4933
|
+
var Jt = this.startNodeAt(r, n);
|
|
4934
|
+
Jt.callee = i, Jt.arguments = je, U && (Jt.optional = B), i = this.finishNode(Jt, "CallExpression");
|
|
4935
4935
|
}
|
|
4936
4936
|
this.maybeInArrowParameters = it;
|
|
4937
4937
|
} else if (this.type === h.backQuote) {
|
|
@@ -5017,9 +5017,9 @@ function ar(t) {
|
|
|
5017
5017
|
var E = this.parseIdent();
|
|
5018
5018
|
if (this.isContextual("as")) {
|
|
5019
5019
|
var L = this.parseIdent();
|
|
5020
|
-
|
|
5021
|
-
} else
|
|
5022
|
-
} else
|
|
5020
|
+
Qt(this.type) ? (x = !0, y = E, c = r ? this.parseIdent() : this.parseModuleExportName(), b = !1) : (c = L, b = !1);
|
|
5021
|
+
} else Qt(this.type) ? (b = !1, c = r ? this.parseIdent() : this.parseModuleExportName()) : (x = !0, y = E);
|
|
5022
|
+
} else Qt(this.type) && (x = !0, r ? (y = S.prototype.parseIdent.call(this, !0), this.isContextual("as") || this.checkUnreserved(y)) : y = this.parseModuleExportName());
|
|
5023
5023
|
x && n && this.raise(T, r ? A.TypeModifierIsUsedInTypeImports : A.TypeModifierIsUsedInTypeExports), i[f] = y, i[m] = c, i[r ? "importKind" : "exportKind"] = x ? "type" : "value", b && this.eatContextual("as") && (i[m] = r ? this.parseIdent() : this.parseModuleExportName()), i[m] || (i[m] = this.copyNode(i[f])), r && this.checkLValSimple(i[m], 2);
|
|
5024
5024
|
}, p.raiseCommonCheck = function(i, r, n) {
|
|
5025
5025
|
return r === "Comma is not permitted after the rest element" ? this.isAmbientContext && this.match(h.comma) && this.lookaheadCharCode() === 41 ? void this.next() : S.prototype.raise.call(this, i, r) : n ? S.prototype.raiseRecoverable.call(this, i, r) : S.prototype.raise.call(this, i, r);
|
|
@@ -5194,7 +5194,7 @@ ${t.slice(Math.max(0, l))}`;
|
|
|
5194
5194
|
async function oe(t, e) {
|
|
5195
5195
|
await at.writeFile(t, JSON.stringify(e, void 0, 4), "utf8");
|
|
5196
5196
|
}
|
|
5197
|
-
async function
|
|
5197
|
+
async function Gt(t, e) {
|
|
5198
5198
|
await at.writeFile(t, e, "utf8");
|
|
5199
5199
|
}
|
|
5200
5200
|
function Ae(t, e) {
|
|
@@ -5280,7 +5280,7 @@ async function Dr() {
|
|
|
5280
5280
|
if (s.isPublish) {
|
|
5281
5281
|
const a = ".npmrc";
|
|
5282
5282
|
try {
|
|
5283
|
-
await
|
|
5283
|
+
await Gt(a, `registry=https://registry.npmjs.org/
|
|
5284
5284
|
//registry.npmjs.org/:_authToken=${process.env.NPM_TOKEN ?? ""}`), await dt("8️⃣ Publish to npm", "npm", ["publish", "--access", "public"]);
|
|
5285
5285
|
} finally {
|
|
5286
5286
|
await cr(a);
|
|
@@ -5392,7 +5392,7 @@ async function br(t) {
|
|
|
5392
5392
|
g in s ? s[g]++ : s.unknown++;
|
|
5393
5393
|
}
|
|
5394
5394
|
const a = await Tr(s), o = await At("./README.md"), l = qi(o, a.join(" "), vr, gr);
|
|
5395
|
-
await
|
|
5395
|
+
await Gt("README.md", l), console.info("OWASP audit badge(s) inserted into 'README.md'");
|
|
5396
5396
|
}
|
|
5397
5397
|
async function Tr(t) {
|
|
5398
5398
|
const e = await Q("config.json"), s = [];
|
|
@@ -5473,7 +5473,7 @@ async function Cr(t, e) {
|
|
|
5473
5473
|
`;
|
|
5474
5474
|
}
|
|
5475
5475
|
const v = await At("./README.md"), g = qi(v, d, Sr, Pr);
|
|
5476
|
-
await
|
|
5476
|
+
await Gt("README.md", g), console.info("OWASP audit badge(s) inserted into 'README.md'"), await Gt("README.md", g);
|
|
5477
5477
|
}
|
|
5478
5478
|
function kr(t) {
|
|
5479
5479
|
if (t == null || t === "") return "n/a";
|
|
@@ -5520,9 +5520,9 @@ async function $r(t = []) {
|
|
|
5520
5520
|
async function Ar(t) {
|
|
5521
5521
|
console.log(1111, t);
|
|
5522
5522
|
const e = te.dirname(ri(import.meta.url));
|
|
5523
|
-
await
|
|
5523
|
+
await Ut(e, "../", ".editorconfig"), await Ut(e, "../", ".gitattributes"), await Ut(e, "../", ".markdownlint.json"), await Ut(e, "../", "LICENSE"), t.isPublish && await Ut(e, "../resources/published/", ".gitignore");
|
|
5524
5524
|
}
|
|
5525
|
-
async function
|
|
5525
|
+
async function Ut(t, e, s) {
|
|
5526
5526
|
console.log(2222, t, e, s);
|
|
5527
5527
|
const a = te.resolve(t, `${e}${s}`);
|
|
5528
5528
|
console.log(3333, a);
|
|
@@ -5538,7 +5538,7 @@ async function Zt(t, e, s) {
|
|
|
5538
5538
|
console.info(`ℹ️ File '${s}' is already up to date.`);
|
|
5539
5539
|
return;
|
|
5540
5540
|
}
|
|
5541
|
-
await
|
|
5541
|
+
await Gt(l, o), console.info(`ℹ️ File '${s}' synchronised.`);
|
|
5542
5542
|
}
|
|
5543
5543
|
async function Gr(t) {
|
|
5544
5544
|
try {
|